package com.jxb.service.monidubbo;

import com.jxb.moniDubbo.HelloService;
import com.jxb.moniDubbo.framework.Protocol;
import com.jxb.moniDubbo.framework.ProtocolFactory;
import com.jxb.moniDubbo.framework.URL;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/9/28 15:56
 **/
public class Provider {

    public static void main(String[] args) {
        // String protocolName = System.getProperty("protocol");
        String protocolName = "dubbo";
        URL url = new URL(protocolName, "localhost", 8080, HelloService.class.getName(), HelloServiceImpl.class);
        Protocol protocol = ProtocolFactory.getProtocol(protocolName);
        protocol.export(url);
    }

}
